mimeTypeNN 3   IE n/a   DOM n/a

The mimeType object belongs to the navigator object. The object represents a MIME type specification. Its properties let scripts find out if the browser is equipped to handle a specific MIME type of external content before it is loaded from the server. All these properties are mirrored in the internal document displayed when you choose Navigator's About Plug-ins menu option. Internet Explorer offers no comparable facilities.

 
 
Object Model Reference
NN navigator.mimeTypes[i]
descriptionNN 3   IE n/a   DOM n/a
 Read-only
 

Returns the brief description of the plugin. This information is embedded in the plugin by its developer. Be aware that the precise wording of this description may vary for the same plugin written for different operating systems.

 
Example
var descr = navigator.mimeTypes[0].description
 
Value
String.
 
Default None.
enabledPluginNN 3   IE n/a   DOM n/a
 Read-only
 

Returns a plugin object reference corresponding to the plugin currently set to play any incoming data formatted according to the current MIME type. You can then dig deeper into properties of the returned plugin object to retrieve, say, its name.

 
Example
var plugName = navigator.mimeTypes[0].enabledPlugin.name
 
Value
plugin object reference.
 
Default None.
suffixesNN 3   IE n/a   DOM n/a
 Read-only
 

Returns a comma-delimited string list of file suffixes associated with the mimeType object. For example, the MIME type associated with Macromedia Shockwave knows about three suffixes. The suffixes property value for that mimeType object is:

dcr, dir, dxr

If you loop through all mimeType objects registered in the browser to find a match for a specific suffix, you can then find out whether the matching mimeType object has a plugin installed for it (via the enabledPlugin property).

 
Example
var suff = navigator.mimeTypes[14].suffixes
 
Value
String.
 
Default None.
typeNN 3   IE n/a   DOM n/a
 Read-only
 

Returns a string version of the MIME type associated with the mimeType object. You could, for example, loop through all the mimeType objects in search of the one that matches a specific MIME type (application/x-midi) and examine that mimeType object further to see whether it is currently supported and enabled.

 
Example
var MType = navigator.mimeTypes[3].type
 
Value
String.
 
Default None.